package com.onlineclass.userserver.service.impl;

import com.onlineclass.userserver.mapper.UserMapper;
import com.onlineclass.userserver.service.IUserService;
import com.onlineclassbackstage.beans.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginService implements IUserService {

    @Autowired
    UserMapper mapper;

    @Override
    public User login(String username, String rolename) {
        return mapper.login(username, rolename);
    }
}
